package com.maotouying.owlsmart.SmartUtil.Sqlite;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;

public class dbUtil {
    //删除指定数据库
    public boolean deleteDatabase(Context context, String databaseName) {
        return context.deleteDatabase(databaseName);
    }
    //清空某一个表
    public void deleteTable(SQLiteDatabase db,String dbtable) {
        db.execSQL(" delete from " + dbtable);
    }
    //删除某一个表
    public void dropTable(SQLiteDatabase db) {
        db.execSQL("drop table userTable");
    }
}



